package com.codingfuture.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author kobe
 * @Date 2021/11/4 13:48
 * @Description
 */
public class Person {
    private Integer id;
    private String username;
    private String password;
//    @DateTimeFormat(pattern = "yyyy-MM-dd")//2020-02-02
//    //@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)//2020-02-02
//    private Date birthday;


    public Person() {
    }

    public Person(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
